package io.renren.modules.generator.service;

import io.renren.modules.generator.entity.SchoolEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-10-13 22:43:30
 */
public interface SchoolService {
	
	SchoolEntity queryObject(String schoolno);
	
	List<SchoolEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(SchoolEntity school);
	
	void update(SchoolEntity school);
	
	void delete(String schoolno);
	
	void deleteBatch(String[] schoolnos);

	/**
	 * 查询所有的学校信息
	 * @return
	 */
	List<SchoolEntity> findAllSchool();

	/**
	 * 查询出学校校区
	 * @return
	 */
	List<SchoolEntity> findAllCampus(String schoolName);
}
